import request from "@/utils/request.js";

const api_prefix = "/pay";

export function commonPay(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/common`,
    method: "POST",
    data: data,
  });
}

export function queryOder(orderId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/query`,
    method: "POST",
    params: {
      orderId: orderId,
    },
  });
}
